package com.digital.smartgrow.entity.business;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 审批明细
 * </p>
 *
 * @author sunyuechao
 * @since 2022-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("up_process_log")
@ApiModel(value="UpProcessLog对象", description="审批明细")
public class UpProcessLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "申请人ID")
    @TableField("userId")
    private Integer userId;

    @ApiModelProperty(value = "申请人姓名")
    @TableField("userName")
    private String userName;

    @ApiModelProperty(value = "晋级申请表ID")
    @TableField("upJobId")
    private Integer upJobId;

    @ApiModelProperty(value = "晋级申请明细表ID")
    @TableField("upJobLogId")
    private Integer upJobLogId;

    @ApiModelProperty(value = "晋级申请表名称")
    @TableField("upJobName")
    private String upJobName;
    @ApiModelProperty(value = "审批名称")
    @TableField("processName")
    private String processName;

    @ApiModelProperty(value = "是否是角色审批")
    @TableField("isRole")
    private Integer isRole;

    @ApiModelProperty(value = "审批人ID")
    @TableField("checkId")
    private Integer checkId;

    @ApiModelProperty(value = "审批人姓名")
    @TableField("checkName")
    private String checkName;

    @ApiModelProperty(value = "前审批人ID")
    @TableField("preId")
    private Integer preId;

    @ApiModelProperty(value = "后审批人ID")
    @TableField("atfId")
    private Integer atfId;

    @ApiModelProperty(value = "审批步骤")
    @TableField("checkStep")
    private Integer checkStep;

    @ApiModelProperty(value = "审批状态（待审批：0，已审批：1）")
    @TableField("checkStatus")
    private Integer checkStatus;

    @ApiModelProperty(value = "审批结果（待审核：0,通过：2，不通过：-2，退回：-1")
    @TableField("checkReturn")
    private Integer checkReturn;

    @ApiModelProperty(value = "审批时间")
    @TableField("checkTime")
    private LocalDateTime checkTime;

    @ApiModelProperty(value = "审批意见")
    @TableField("checkContent")
    private String checkContent;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField("updateTime")
    private LocalDateTime updateTime;


}
